package com.noahsloan.nutils.streams;

import java.io.FilterOutputStream;
import java.io.OutputStream;

/**
 * FilterOutputStream where the underlying output stream is not closed by the
 * close method. Slightly shorter than an anonymous inner class.
 * 
 * @author noah
 * 
 */
public class UnclosableOutputStream extends FilterOutputStream {

    public UnclosableOutputStream(OutputStream out) {
        super(out);
    }

    /**
     * Doesn't do a thing.
     */
    @Override
    public void close() {
        // do nothing
    }
}
